Use g_open().
authorTor Lillqvist <tml@novell.com>
Tue, 3 Jun 2008 11:04:33 +0000 (11:04 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Tue, 3 Jun 2008 11:04:33 +0000 (11:04 +0000)
2008-06-03  Tor Lillqvist  <tml@novell.com>

* gtk/updateiconcache.c (build_cache): Use g_open().

svn path=/trunk/; revision=20303

ChangeLog
gtk/updateiconcache.c

index 576d03fbf6a026bd2e0caff33f64c856595efc10..be7d51f16243295e5a2e419d0a6816830008b208 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-06-03  Tor Lillqvist  <tml@novell.com>
+
+       * gtk/updateiconcache.c (build_cache): Use g_open().
+
 2008-06-03  Michael Natterer  <mitch@imendio.com>
 
        * gtk/gtkclist.h
index 4d8ce82106ddce2c206393bbad17a99d759bed45..a9381ce741fae24bfabdd2a447e6c3a3d90dceb0 100644 (file)
@@ -1449,7 +1449,7 @@ build_cache (const gchar *path)
 
   tmp_cache_path = g_build_filename (path, "."CACHE_NAME, NULL);
 
-  if ((fd = open (tmp_cache_path, O_WRONLY | O_CREAT | O_EXCL | O_TRUNC | _O_BINARY, mode)) == -1)
+  if ((fd = g_open (tmp_cache_path, O_WRONLY | O_CREAT | O_EXCL | O_TRUNC | _O_BINARY, mode)) == -1)
     {
       g_printerr (_("Failed to open file %s : %s\n"), tmp_cache_path, g_strerror (errno));
       exit (1);